home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY3 / POV301 / povray3 / docsdemo / pov / prismdm6 < prev    next >
Text File  |  1997-01-21  |  400b  |  25 lines

  1. #include "colors.inc"
  2.  
  3. camera {  
  4.   angle 20
  5.   location <2, 10, -30>
  6.   look_at <0, 1, 0>
  7. }
  8.  
  9. light_source { <20, 20, -20> color White }
  10.  
  11. prism { 
  12.   conic_sweep
  13.   linear_spline
  14.   0.251, // height 1
  15.   1, // height 2
  16.   5, // the number of points making up the shape...
  17.  
  18.   <4,4>,<-4,4>,<-4,-4>,<4,-4>,<4,4>
  19.  
  20.   rotate <180, 0, 0>
  21.   translate <0, 1, 0>
  22.   scale <1, 4, 1>
  23.   pigment { gradient y scale .2 }
  24. }
  25.